home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d17
/
ljplot10.arc
/
LJPLOT.DOC
< prev
next >
Wrap
Text File
|
1990-04-30
|
9KB
|
252 lines
LJPLOT
Hewlett Packard LaserJet Series III Plotting Utility
Version 1.0
April 24,1990
(c) Copyright SIRIUS Systems Co. 1990 All rights reserved
Introduction
LJPLOT is a utility to make plotting AutoCAD HPGL plot
files on the Hewlett Packard LaserJet Series III a little
easier. Plot files produced by the AutoCAD HPGL driver are
not immediately suitable for plotting in most configurations.
LJPLOT provides the printer control codes for HPGL plotting as
well as rotation of the plot, if needed.
LJPLOT is not an HPGL to PCL translation program. It
uses the internal HP-GL/2 mode which is now standard on the
LaserJet Series III printers. This makes the plotting process
very fast compared to the raster graphics dumps to the printer
when using AutoCAD printer plotter LaserJet driver.
LJPLOT is free. It is still copyrighted and may not be
sold or supplied for profit in any manner. No charge for it's
distribution may be imposed with one exception; bulletin
boards which charge a fee for access may distribute this
program.
I would like to here feedback if you like it, don't like,
got any ideas, whatever. I've only had the LaserJet III for a
short time and expect to write more support programs for it.
I may be contacted on Compuserve (71660,2717) or by mail:
SIRIUS Systems Company
10508 Towner NE
Albuquerque, NM 87112
Installation
There is only one file required for proper LJPLOT
operation, LJPLOT.EXE. This file should be copied to the
AutoCAD directory (or any directory specified with the DOS
PATH environment variable).
LJPLOT assumes the printer is attached to the device PRN.
This defaults to LPT1 on most MS-DOS systems. If the printer
is attached to any other port, the DOS MODE command should be
used to assign that port as PRN. For example, if the printer
is configured for serial operation on COM1, the correct MODE
command would be:
MODE PRN:=COM1:
AutoCAD must also be configured to produce HPGL plots for
Letter (A size) plots. LJPLOT has only been tested when the
plotter is configured as an HP7475A and as an HP7220. Both
produce identical plots. The configuration settings for the
plotter are:
Supported Models: 1 or 3
Port Name: Don't really care, you're going to a file.
Calibrate plotter: No (you shouldn't need to)
Write the plot to a file: Yes
Size Units: I
Plot Origin: 0,0
Size: A
Rotate plot: N
Pen Width: .01 ( you may change this and pass the setting
on to LJPLOT, but .01 produces the nicest plots )
Adjust fill boundries: Y ( definitely needed for larger
pen widths )
Remove Hidden Lines: Whatever is appropriate
Scale: Will behave like the real plotter. Enter whatever
your application requires.
That's it for the installation.
Usage
LJPLOT always reads a file(s) and writes to PRN. The
general command line syntax is :
LJPLOT [switch] file {[switch] file ....}
The command line is processed left to right. The closest
switch to the right of a file name is the one that is in
effect. Most of the switches are toggles, the first time they
appear on the command line, the switch is turned on, the next
time off, the third time on again, etc. Switches are not case
sensitive. The switches are:
/o Overlay the following plots. This defaults to
off and is a toggle.
/p Plot in portrait mode. Since the printer is
normally in the portrait mode, this switch
inhibits plot rotation. This is a toggle.
/wnum Sets the pen width to num millimeters. This
value defaults to .35mm in the LaserJet III.
Match this value to the pen width specified in
AutoCAD when creating the plot file.
/fname Name is a file name for a file containing a
list of files to plot. The file format is:
- all names (may be full pathlists) are left
justified, ie., they must start in the first
column.
- There must be one and only one filename per
line.
- The file must be straight ASCII such as that
created with EDLIN or any other ASCII editor.
Probably the same as EDIT invokes from within
AutoCAD as defined in the file ACAD.PGP.
Overplotting
This is best explained by example. Consider the making
of an overhead tranparency with a border and company logo on
it that you've created in AutoCAD. The border and logo are
handled in one of several ways, either inserted into the
drawing as a block, custom drawn for each drawing or
overplotted in the printer. You save considerable disk space
by having the border/logo in a separate drawing, plotting that
to a file and overplotting the rest of the transparency.
There's only one copy of the border/logo needed. So make the
transparency drawing without the border and plot to a file.
Alignment is easiest if you use pans and zooms to position the
drawing on the screen the way it should come out on the
transparency and plot the display. The final command line to
produce the transparency is:
LJPLOT /o drawing.plt border.plt
Multiple plots like the one described above can be
created with the command line:
LJPLOT /o drawing.plt border.plt /o /o drawing2.plt
border.plt ....
In the first case, overplotting is initially off and is
turned on with /o. The second line has to have the double /o
to toggle overplotting off then bak on again. This makes two
seperate plot instead of one with all 4 overplotted.
If a single /o were used the result would be 3 plots.
The first is as desired, the drawing with an overlaid border.
That will be follwed by two more plots, one of the second
drawing and one of the border/logo.
The next release of this software will support a global
overlay plot.
Plot Orientation
LJPLOT was written on the assumption that the printer is
set to default to the portrait orientation. That is the
factory default if you perform a menu reset and is usually the
way you want to print anyway. To get AutoCAD to rotate the
plot for you will result in a clipped image because of the
viewport commands it will imbed in the plot file (I think
that's the reason). So what to do? Either use the front
panel menu and change the orientation back and forth or let
LJPLOT do it for you. For this to work, the plot should be
created without rotating it 90 degrees and leave the printer
in portrait mode. The long edge of the paper will be the same
orientation as the bottom of your display. And you need not
touch the printer.
This produces an interesting (handy) side effect.
Selecting a rotated drawing from AutoCAD to produce the plot
file and letting LJPLOT rotate the plot again ends up with a
portrait oriented plot, properly scaled along the short edge
of the paper. Experimentation is the only way to see what
happens.
Plot rotation defaults to the on state and is toggled
with the /p (for portrait) option. It may be used anywhere on
the command line and only affects the plot files that follow
it. You could use a combination of overplotting and
orientation switches to get one plot printed alogn the long
axis and the other along the short axis like this:
LJPLOT /o file1.plt /p file2.plt
Pen Width
The HP LaserJet III defaults to a pen width of .35
millimeters. Depending on the pen width setting in AutoCAD,
this default value may need to be changed (the default of .35
mm cooresponds to a pen width of .0138 inches). This is done
with the /wnum switch. To set the printer pen width to
exactly .01 inches (as in the AutoCAD configuration example in
installation above) use the /w.25 switch. This may be set for
each file if needed. The /w switch without a pen width will
default to .25 mm.
Pen width is not a toggle, mainly because there is
nothing to turn "off". Once set, it remains in effect for all
files following it on the command line.
The next release of this program will allow a custom
width specification which maps the different pen numbers to a
pen width.
Plot File Lists
A plot file list is nothing more than an ASCII file
containing the names of the files to be plotted. This can be
useful to organize plot files for a project or for creating a
special effect with overlays that you want saved.
The file is a pure ASCII file, ie. , no control
characters except for white space (tabs, carriage returns,
line feeds). Every line must contain 1 and only one file
name. The next release will allow comments and control
switches.
Processing quits when the first error occurs. This
includes a bad filename, a blank line or any other error.